%ion-view(hide-nav-bar="true" cache-view="false")

  %ion-content(overflow-scroll="true" style="overflow: hidden")
    .flex-center.height-100.lockpattern-bg.white
      %ion-spinner(ng-if="preparing" icon="bubbles")

      .width-100(ng-show="!preparing")
        .text-center.margin-bottom-20
          %img.gesture-avatar(src="img/avatar/lock.png")

        .text-center(ng-if="error")
          %p.assertive.animated.large.shake 输入有误，请重试
        .text-center(ng-if="!error && !gesture_reject_waiting")
          %p.large 请验证手势密码
        .text-center(ng-if="gesture_reject_waiting")
          %p.assertive.animated.large.shake
            请于
            %b {{gesture_reject_waiting}}
            秒后重新输入手势密码

        .flex-center
          #lockPatternLogin.pattern-holder.patt-holder(ng-hide="gesture_reject_waiting")

        .gesture-forget.padding-20
          %a.float-left.text-grey(ng-click="resetGesture()") 忘记手势密码?
          %a.float-right.text-grey(ng-click="switchAccount()") 切换账号
